package com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm;

import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用车申请实体
 */
public class AutoApply extends BootstrapSearchBean implements Serializable {

    /**
     * 状态 已提交
     */
    public static short _STATUS_SUBMIT = 1;

    /**
     * 状态 已提交
     */
    public static short _STATUS_NO_SUBMINT = 0;

    private String autoApplyId;
    // 申请操作员
    private String operatorId;
    // 申请人名
    private String name;
    // 申请事由类型
    private Short reasonType;
    // 事由说明
    private String reason;
    // 人数
    private Short personTotal;
    // 存日期时使用
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;//开始日期
    private String startTimeStr;
    // 存日期时使用
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;//截止日期
    private String endTimeStr;
    // 关联出差申请Id
    private String businessTravelId;
    // 状态 0审批中,1审批通过,2驳回,3废弃,4指派中,5已指派
    private Short status;
    // 审批人
    private String modifierId;
    // 审批时间
    private Date modifyTime;
    // 审批意见
    private String comments;

    // 填充字段
    // 申请人姓名
    private String operatorName;
    // 所属组织
    private String orgName;
    // 流程实列id
    private String piPiid;
    private TaskLinkIam taskLinkIam;
    // 车辆id
    private String autoId;
    // 车辆编号
    private String autoNo;
    // 驾驶员id
    private String driverId;
    // 驾驶员名字
    private String driverName;
    // 处理人
    private String approver;
    private String approveId;

    private String stepName;
    private String approveIds;
    private String taskId;

    //用车天数
    private Integer days;
    //创建时间（填单时间）
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //目的地
    private String destination;
    //部门id
    private String depId;

    private String depName;
    //第一审批人id
    private String firstApproval;
    //第一审批人名称
    private String firstApprovalName;
    //第二审批人id
    private String secondApproval;
    //第二审批人名称
    private String secondApprovalName;
    //节点名称
    private String nodeName;

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getFirstApproval() {
        return firstApproval;
    }

    public void setFirstApproval(String firstApproval) {
        this.firstApproval = firstApproval;
    }

    public String getFirstApprovalName() {
        return firstApprovalName;
    }

    public void setFirstApprovalName(String firstApprovalName) {
        this.firstApprovalName = firstApprovalName;
    }

    public String getSecondApproval() {
        return secondApproval;
    }

    public void setSecondApproval(String secondApproval) {
        this.secondApproval = secondApproval;
    }

    public String getSecondApprovalName() {
        return secondApprovalName;
    }

    public void setSecondApprovalName(String secondApprovalName) {
        this.secondApprovalName = secondApprovalName;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getDepId() {
        return depId;
    }

    public void setDepId(String depId) {
        this.depId = depId;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public String getStepName() {
        return stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName;
    }

    public String getApproveIds() {
        return approveIds;
    }

    public void setApproveIds(String approveIds) {
        this.approveIds = approveIds;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getAutoApplyId() {
        return autoApplyId;
    }

    public void setAutoApplyId(String autoApplyId) {
        this.autoApplyId = autoApplyId == null ? null : autoApplyId.trim();
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Short getReasonType() {
        return reasonType;
    }

    public void setReasonType(Short reasonType) {
        this.reasonType = reasonType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Short getPersonTotal() {
        return personTotal;
    }

    public void setPersonTotal(Short personTotal) {
        this.personTotal = personTotal;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getBusinessTravelId() {
        return businessTravelId;
    }

    public void setBusinessTravelId(String businessTravelId) {
        this.businessTravelId = businessTravelId == null ? null : businessTravelId.trim();
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId == null ? null : modifierId.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments == null ? null : comments.trim();
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getPiPiid() {
        return piPiid;
    }

    public void setPiPiid(String piPiid) {
        this.piPiid = piPiid;
    }

    public TaskLinkIam getTaskLinkIam() {
        return taskLinkIam;
    }

    public void setTaskLinkIam(TaskLinkIam taskLinkIam) {
        this.taskLinkIam = taskLinkIam;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public String getStartTimeStr() {
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getAutoId() {
        return autoId;
    }

    public void setAutoId(String autoId) {
        this.autoId = autoId;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public String getAutoNo() {
        return autoNo;
    }

    public void setAutoNo(String autoNo) {
        this.autoNo = autoNo;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public String getApproveId() {
        return approveId;
    }

    public void setApproveId(String approveId) {
        this.approveId = approveId;
    }
}